﻿Imports System.IO

Public Class ConfigTest
    'This is an app configuration test. Mess around with it as you like. App config is held in /debug/windows software installer.exe.config
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Me.Load
        'Dim output As String = Configuration.ConfigurationSettings.AppSettings("PingURL")

        ' Dim build As String = Configuration.ConfigurationSettings.AppSettings("Build")

        Dim output As String
        Dim file As String = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) & "\WSI\Config\User.xml"
        output = ReadXML.Read(file, "UserConfig", "Name")



        Label1.Text = output
    End Sub
End Class